#ifndef XPLREADER_H
#define XPLREADER_H

#include "xplentry.h"
#include <QComboBox>
#include <QSettings>

#ifndef XPL_VERSION
#define XPL_VERSION 0x00221
#define XPL_VERSION_STRING "0x00221"
#endif

class XplReader
{
public:
    XplReader();

    bool Open(QString FileName);

    void WriteInQComboBox(QComboBox *lsview);
    void WriteInQComboBox(QComboBox *lsview, xplEntry *entry);
    void SaveInFileFromQComboBox(QComboBox* lsview);

    bool Close();

    QString getURL(QComboBox* lsview, int item);
private:
    QSettings     *m_playlist;
};

#endif // XPLREADER_H
